package com.dy.drp.mapper;

import com.dy.drp.dto.RoleDto;
import com.dy.drp.dto.RolePowerDto;
import com.dy.drp.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.drp.util.PageUtil;
import com.dy.drp.util.SelectUtil;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dy
 * @since 2022-04-02
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectOnePageRole(PageUtil<Role> pageUtil);

    Integer insertRole(RolePowerDto rolePowerDto);

    RolePowerDto selectRolePowerByName(SelectUtil selectUtil);
}
